package com.wocao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wocao.entity.SysDictData;
import com.wocao.entity.SysDictType;
import com.wocao.entity.SysDictTypeAndDateCheck;
import com.wocao.mapper.SysDictTypeMapper;
import com.wocao.service.SysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDictTypeServiceImpl extends ServiceImpl<SysDictTypeMapper, SysDictType> implements SysDictTypeService {

    @Autowired
    SysDictTypeMapper sysDictTypeMapper;

    @Override
    public Page<SysDictType> getPage(Page<SysDictType> page, SysDictTypeAndDateCheck s) {
        return sysDictTypeMapper.getPage(page,s.getDictName(), s.getDictType(),s.getStatus()
                ,s.getStartDate(),s.getEndDate());
    }

}
